package com.actionpals.components.controls.calendar
{
	import flash.text.TextFormat;
	
	public class CalendarHeaderStyle
	{
		private var _textFormat:TextFormat;
		private var _embedFonts:Boolean;
		private var _percentHeight:Number;
		private var _colors:Array = [ 0xFFFFFF, 0xFFFFFF ];
		private var _alphas:Array = [ 0, 0 ];
		private var _borderColor:uint;
		private var _borderAlpha:Number;
		private var _borderThickness:Number;
		
		public function CalendarHeaderStyle( textFormat:TextFormat, embedFonts:Boolean=false, percentHeight:Number=14, colors:Array=null, alphas:Array=null, borderColor:uint=0x000000, borderAlpha:Number=0, borderThickness:Number=0 )
		{
			this.textFormat = textFormat;
			this.embedFonts = embedFonts;
			this.percentHeight = percentHeight;
			this.colors = colors ? colors: _colors;
			this.alphas = alphas ? alphas : _alphas;
			this.borderColor = borderColor;
			this.borderAlpha = borderAlpha;
			this.borderThickness = borderThickness;
		}
		
		public function get textFormat():TextFormat
		{
			return _textFormat;
		}
		public function set textFormat( value:TextFormat ):void
		{
			_textFormat = value;
		}
		
		public function get embedFonts():Boolean
		{
			return _embedFonts;
		}
		public function set embedFonts( value:Boolean ):void
		{
			_embedFonts = value;
		}
		
		public function get percentHeight():Number
		{
			return _percentHeight;
		}
		public function set percentHeight( value:Number ):void
		{
			_percentHeight = value;
		}
		
		public function get colors():Array
		{
			return _colors;
		}
		public function set colors( value:Array ):void
		{
			_colors = value;
		}
		
		public function get alphas():Array
		{
			return _alphas;
		}
		public function set alphas( value:Array ):void
		{
			_alphas = value;
		}
		
		public function get borderColor():uint
		{
			return _borderColor;
		}
		public function set borderColor( value:uint ):void
		{
			_borderColor = value;
		}
		
		public function get borderAlpha():Number
		{
			return _borderAlpha;
		}
		public function set borderAlpha( value:Number ):void
		{
			_borderAlpha = value;
		}
		
		public function get borderThickness():Number
		{
			return _borderThickness;
		}
		public function set borderThickness( value:Number ):void
		{
			_borderThickness = value;
		}
		
		public function clone():CalendarHeaderStyle
		{
			return new CalendarHeaderStyle( textFormat, embedFonts, percentHeight, colors, alphas, borderColor, borderAlpha, borderThickness );
		}
		
	}
}